<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="wilmar" uri="/wilmar-process"%>
<html>
<head>
<wilmar:process.head datatable="true" tooltip="true" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>authority-pd-list</title>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$('#authority-list')
								.dataTable(
										{
											"sPaginationType" : "full_numbers",
											"sDom" : '<"top"fi>rt<"bottom"lp<"clear">',
											"aaSorting" : [ [ 6, "desc" ] ],
											"bAutoWidth" : false,
											"oLanguage" : {
												"sLengthMenu" : "<s:text name='datatable.text.lengthmenu' />",
												"sZeroRecords" : "<s:text name='datatable.text.zerorecords' />",
												"sInfo" : "<s:text name='datatable.text.info' />",
												"sInfoEmtpy" : "<s:text name='datatable.text.infoemtpy' />",
												"sInfoFiltered" : "<s:text name='datatable.text.infofiltered' />",
												"sSearch" : "<s:text name='datatable.text.search' />",
												"oPaginate" : {
													"sFirst" : "<s:text name='datatable.text.frist' />",
													"sPrevious" : "<s:text name='datatable.text.previous' />",
													"sNext" : "<s:text name='datatable.text.next' />",
													"sLast" : "<s:text name='datatable.text.last' />"
												}
											}
										});
						$('#actions img[title]').tooltip('#common_tooltip');
					});
</script>
</head>
<body>
<center><wilmar:process.logo /></center>
<table id="authority-list" cellpadding="0" cellspacing="0" border="0"
	width="100%">
	<thead>
		<tr align="center">
			<th><s:text name="table.title.process.definition.deploymentid" /></th>
			<th><s:text name="table.title.process.definition.description" /></th>
			<th><s:text name="table.title.process.definition.pdid" /></th>
			<th><s:text name="table.title.process.definition.imageresname" /></th>
			<th><s:text name="table.title.process.definition.key" /></th>
			<th><s:text name="table.title.process.definition.name" /></th>
			<th><s:text name="table.title.process.definition.version" /></th>
			<th><s:text name="table.title.actions" /></th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="%{processDefinitionVOList}"
			id="processDefinitionVOList" status="voList">
			<tr align="center">
				<s:url action="processDefinitionAction" namespace="/process"
					method="doGotoAuthorition" id="processDefAuth">
					<s:param name="processAuthority.processDefinitionKey">
						<s:property value="key" />
					</s:param>
				</s:url>
				<s:url action="processDefinitionAction" namespace="/process"
					method="doGetUndoAuthoritionList" id="processDefAuthUndo">
					<s:param name="processAuthority.processDefinitionKey">
						<s:property value="key" />
					</s:param>
				</s:url>
				<s:url action="processDefinitionAction" namespace="/process"
					method="doGetViewAuthorityList" id="processDefAuthView">
					<s:param name="processAuthority.processDefinitionKey">
						<s:property value="key" />
					</s:param>
				</s:url>
				<!-- <td><s:radio list="voList" name="key" listKey="key" listValue="key"></s:radio></td>  -->
				<td><s:property value="deploymentId" /></td>
				<td><s:property value="description" /></td>
				<td><s:property value="id" /></td>
				<td><s:property value="imageResourceName" /></td>
				<td><s:property value="key" /></td>
				<td><s:property value="name" /></td>
				<td><s:property value="version" /></td>
				<td>
				<div id="actions"><s:a href="%{processDefAuth}">
					<wilmar:process.icon icon="authorition" />
				</s:a> <s:a href="%{processDefAuthUndo}">
					<wilmar:process.icon icon="undo" />
				</s:a> <s:a href="%{processDefAuthView}">
					<wilmar:process.icon icon="view" />
				</s:a></div>
				</td>
			</tr>
		</s:iterator>
	</tbody>
</table>
<div id="common_tooltip">&nbsp;</div>
</body>
</html>